﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Maspalomas
{
   public partial class Find : Form
   {
      public string SearchFor
      {
         get
         {
            return txtSearchFor.Text;
         }
      }

      public bool UseLike { get; set; }
      public bool CaseSensitive { get; set; }

      public Find()
      {
         InitializeComponent();
         UseLike = chkLike.Checked;
         CaseSensitive = chkCaseSensitive.Checked;
      }

      private void btnOK_Click(object sender, EventArgs e)
      {
         this.DialogResult = DialogResult.OK;
         Close();
      }

      private void chkLike_CheckedChanged(object sender, EventArgs e)
      {
         UseLike = chkLike.Checked;
      }

      private void chkCaseSensitive_CheckedChanged(object sender, EventArgs e)
      {
         CaseSensitive = chkCaseSensitive.Checked;
      }
   }
}
